[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
SetLastKey (nKey) --> nKey:
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Functions:
~~~~~~~~~~
The functional variant of SET LAST KEY ... command, the nKey number is
set to return this number from the LastKey() function until is a key
pressed or until a new set by SetLastKey().
Parameter description:
~~~~~~~~~~~~~~~~~~~~~~
nKey: key code to return by LastKey() function
Return value:
~~~~~~~~~~~~~
returns the value set as nKey
Example:
~~~~~~~~
? LastKey() //returns last keypressed value
SetLastKey(K_ENTER) //LastKey() is set to ENTER value
? LastKey() //returns a Enter key value ( K_ENTER)
Source code is in file Object3.prg
See Also:
StuffKey
StuffKeys
InKeyWait
PauseKey
SET LASTKEY
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson